// 隐藏关闭按钮
<template>
<p>通知的关闭按钮可以被设置为隐藏。</p>
  <el-button plain @click="open"> Hide close button </el-button>
  <div text="sm" m="y-4" data-v-72294632=""><p>将 <code>showClose</code> 属性设置为 <code>false</code> 即可隐藏关闭按钮。</p>
</div>
</template>

<script lang="ts" setup>
import { ElNotification } from 'element-plus'

const open = () => {
  ElNotification.success({
    title: 'Info',
    message: 'This is a message without close button',
    showClose: false,
  })
}
</script>

<style scoped>
@import '../../assets/elementPlusDemo.css'
</style>